namespace ef_core_2025_learn.Entity;

/// <summary>
/// 评论
/// </summary>
public class Comment
{
    public int Id { get; set; }

    public required string Message { get; set; }

    /// <summary>
    /// 作者
    /// </summary>
    public required Guid AuthorId { get; set; }
    public required User Author { get; set; }

    public DateTime CreateDate { get; set; }
    public DateTime? UpdateDate { get; set; }

    public int WorkItemId { get; set; }
    public WorkItem WorkItem { get; set; }
}


